package cn.iocoder.yudao.module.els.controller.admin.codeGeneratorDetail.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 编码生成器明细分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CodeGeneratorDetailPageReqVO extends PageParam {

    @Schema(description = "id", example = "18985")
    private Long generatorId;

    @Schema(description = "顺序")
    private Integer seq;

    @Schema(description = "取值类型：固定值、变量值、表达式、枚举值、流水号", example = "1")
    private String valueType;

    @Schema(description = "变量名", example = "张三")
    private String variableName;

    @Schema(description = "值内容与取值类型对应")
    private String value;

    @Schema(description = "值长度")
    private Integer valueLength;

    @Schema(description = "是否流水号key值")
    private Integer isSerialKey;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}